---
layout: single
property_name: text-overflow
---

<section id="text-overflow" class="property">
  <header class="property-header">
    <nav class="property-links">
        <a class="property-collection" href="{{site.url}}/typography/">
          In collection: <strong>typography</strong>
        </a>
      <a class="property-links-direct" href="{{site.url}}/property/text-overflow/" data-property-name="text-overflow" data-tooltip="Single page for this property">Permalink</a>
      <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="text-overflow">Share</a>
        <a target="_blank" href="http://caniuse.com/#feat=text-overflow" data-tooltip="See on Can I use..." rel="external">Can I use</a>
      <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/text-overflow" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
    </nav>
    <h2 class="property-name">
      <a href="#text-overflow"><span>#</span>text-overflow</a>
    </h2>
    <div class="property-description">
      <p>Defines how the hidden text content behaves if it&#39;s overflowing.</p>

    </div>

  </header>

    <style type="text/css">.text-overflow { display: flex; }</style>


    <style type="text/css">.text-overflow .block { overflow: hidden;white-space: nowrap;width: 5em; }</style>


    <section class="example">
      <header class="example-header">
        <p class="example-name">
            <code class="example-default" data-tooltip="This is the property's default value">default</code>


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-overflow: clip;">text-overflow: clip;</code>
        </p>
        <div class="example-description">
          <p>The text content is <strong>clipped</strong> and not accessible.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div text-overflow " id="text-overflow-clip"><p class="block block--alpha">Hello world</p></div>
        </div>
      </aside>
          <style type="text/css">#text-overflow-clip{ text-overflow:clip;}</style>
        <style type="text/css">#text-overflow-clip .block { text-overflow: clip; }</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="text-overflow: ellipsis;">text-overflow: ellipsis;</code>
        </p>
        <div class="example-description">
          <p>The overflowing content is replaced by an <strong>ellipsis</strong>: <code>…</code></p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div text-overflow " id="text-overflow-ellipsis"><p class="block block--alpha">Hello world</p></div>
        </div>
      </aside>
          <style type="text/css">#text-overflow-ellipsis{ text-overflow:ellipsis;}</style>
        <style type="text/css">#text-overflow-ellipsis .block { text-overflow: ellipsis; }</style>
    </section>

</section>
